﻿<Window x:Class="SimplePlanner.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:ig="http://schemas.infragistics.com/xaml"
        Title="MainWindow" Height="350" Width="291" xmlns:gauge="http://schemas.actiprosoftware.com/winfx/xaml/gauge" xmlns:igEditors="http://infragistics.com/Editors" ResizeMode="CanMinimize">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="25"/>
            <RowDefinition Height="25"/>
            <RowDefinition Height="25"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="25"/>
        </Grid.RowDefinitions>

        <Menu Height="25" HorizontalAlignment="Stretch" Name="menu1" VerticalAlignment="Stretch"  />
        <Label Grid.Row="1" Content="Course Code/Index" FontSize="14" FontFamily="Levenim MT" FontWeight="Bold" />
        <TextBox Grid.Row="2" Name="textBoxInput" FontSize="14" FontFamily="Levenim MT"/>
        <ListView Grid.Row="3" Name="listViewSelection" FontSize="12" FontWeight="Bold" FontFamily="Levenim MT">
            <ListView.Resources>
                <DataTemplate x:Key="IndexComboBox">
                    <ComboBox>
                        <ComboBox.Resources>
                            <DataTemplate x:Key="IndexComboBoxItem">
                                <Grid>
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="*"/>
                                        <ColumnDefinition Width="20"/>                                        
                                    </Grid.ColumnDefinitions>                                    
                                    <Ellipse  Grid.Column="1" Fill="#FFF51C1C">                                            
                                    </Ellipse>
                                </Grid>
                                
                            </DataTemplate>                            
                        </ComboBox.Resources>
                        
                    </ComboBox>
                    
                </DataTemplate>
                
                
            </ListView.Resources>
            
            <ListView.View>
                
                <GridView>
                    <GridViewColumn Header="Course" Width="120" />
                    <GridViewColumn Header="Index" Width="120" CellTemplate="{StaticResource IndexComboBoxItem}"/>
                </GridView>
            </ListView.View>
        </ListView>
        
        <Button Grid.Row="4" Content="Remove All" Width="80" HorizontalAlignment="Center" VerticalAlignment="Center" Click="Button_Click" />
        
    </Grid>
</Window>
